<#include "../../layout/mainLayout.ftl">
<@layout>
    <link href="/static/module/add.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/module/readonly.css">
    <style>
        .layout-form{
            width: 100%;
        }
    </style>
    <div class="both">
        <div style="margin-left: 10px;margin-top: 20px">
            <h3 style="font-size: 14px">政务资源目录平台 &nbsp;&nbsp;/&nbsp;&nbsp;<a href="/tMatter/approvalPage"
                                                                             style="color: #999;">事项审核</a>&nbsp;&nbsp;/&nbsp;&nbsp;<span
                        style="color: #999">事项审核详情</span></h3>
            <hr>
        </div>
        <h3 class="blue" style="margin-left: 20px;margin-top: 30px;margin-bottom: 30px">
            审核流程
        </h3>
        <ul class="layui-timeline ul" style="margin-left: 100px">

        </ul>
        <div class="box">
            <div class="content" style="height: 100%;width: 95%; margin: 35px">
                <!-- 基本信息 -->
                <form class="layui-form mb50 form-readonly">
                    <input type="hidden" name="id" value="${param.id}"/>
                    <h3 class="blue pb10 pl10">基本信息</h3>
                    <table>
                        <tr>
                            <td class="txt_r pr10" width="20%">事项名称：</td>
                            <td width="30%">
                                <input type="text" value="${param.matterName!''}" name="matterName"
                                       lay-verify="required" class="layui-input"/>
                            </td>
                            <td class="txt_r pr10" width="20%" id="IsPurchased4">
                                <div style="margin-right: 0">
                                    <input type="radio" value="1" name="matterAttr" lay-filter="ddd" checked/>
                                    <label>公共服务</label>
                                    <input id="matterType" value="2" type="radio" name="matterAttr" lay-filter="ddd"/>
                                    <label>权力事项</label>
                                </div>
                                <div style="margin-right: 27px">
                                </div>
                            </td>
                            <td width="30%" id="select1" class="home5">
                                <div id="administrative4" class="layui-unselect layui-form-select" style="display:none">
                                    <select style="width:150px;" id="administrative" class="select"
                                            name="powerMatterType">
                                        <option value="1">行政许可</option>
                                        <option value="2">行政处罚</option>
                                        <option value="3">行政强制</option>
                                        <option value="4">行政征收</option>
                                        <option value="5">行政确认</option>
                                        <option value="6">行政奖励</option>
                                        <option value="7">行政给付</option>
                                        <option value="8">行政裁决</option>
                                        <option value="9">其他行政权力</option>
                                    </select>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">主项名称：</td>
                            <td>
                                <input type="text" value="${param.powerMatterName!''}" name="powerMatterName"
                                       lay-verify="required" class="layui-input"/>
                            </td>
                            <td class="txt_r pr10">主项编码：</td>
                            <td>
                                <input type="text" value="${param.powerMatterCode!''}" name="powerMatterCode"
                                       class="layui-input"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">子项名称：</td>
                            <td>
                                <input type="text" value="${param.subPowerMatterName!''}" name="subPowerMatterName"
                                       class="layui-input"/>
                            </td>
                            <td class="txt_r pr10">子项编码：</td>
                            <td>
                                <input type="text" value="${param.subPowerMatterCode!''}" name="subPowerMatterCode"
                                       class="layui-input"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">小项名称：</td>
                            <td>
                                <input type="text" value="" id="subproject" class="layui-input auto"/>
                            </td>
                            <td colspan="2">
<#--                                <a style=" float:right;" href="#">-->
                                    <input type="button" class="layui-btn" value="添加"
                                           id="add_subproject">
<#--                                </a>-->
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">小项：</td>
                            <td class=" pr10" colspan="5" id="subproject_list">
                                <input type="hidden" class="textbox-value" value="" name="litPowerMatterName">
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">事项类型：</td>
                            <td class="txt_l pr10">
                                <input type="checkbox" name="matterType" value="个人"/>
                                <label>个人</label>
                                <input type="checkbox" name="matterType" value="法人"/>
                                <label>法人</label>
                                <input type="checkbox" name="matterType" value="其他"/>
                                <label>其他</label>
                            </td>
                            <td class="txt_r pr10">是否常用事项：</td>
                            <td>
                                <input type="radio" value="1" name="commonMatterFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="commonMatterFlag"/>
                                <label>否</label>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">可在哪些层级部门办理：</td>

                            <td class="txt_l pr10 city" id="IsPurchased6">
                                <input type="checkbox" value="省级" name="handleDeptLevel"/>
                                <label>省级</label>
                                <input type="checkbox" value="市级" name="handleDeptLevel"/>
                                <label>市级</label>
                                <input type="checkbox" value="区" name="handleDeptLevel"/>
                                <label>区</label>
                                <input type="checkbox" value="县" name="handleDeptLevel"/>
                                <label>县</label>
                                <input type="checkbox" value="街道、乡镇" name="handleDeptLevel"/>
                                <label>街道、乡镇</label>
                                <input type="checkbox" value="社户" name="handleDeptLevel" lay-filter="fff"/>
                                <label>社区</label>
                            </td>
                            <td class="txt_r pr10 home6" style="display:none">社区办理：</td>
                            <td width="30%" id="select1" class="home6" style="display:none">
                                <select id="wayCommunityHandleID" class="select" name="wayCommunityHandle">
                                    <option value=""></option>
                                    <option value="1">直接办理</option>
                                    <option value="2">委托代办</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">是否已进驻市民之家：</td>
                            <td class="txt_l" id="IsPurchased">
                                <input type="radio" value="1" name="publicServiceFlag" lay-filter="aaa"/>
                                <label>是</label>
                                <input type="radio" value="2" name="publicServiceFlag" lay-filter="aaa"/>
                                <label>否</label>
                            </td>
                            <td class="txt_r pr10">所属系统：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.subordinateSystem!''}"
                                       name="subordinateSystem"/>
                            </td>
                        </tr>
                    </table>
                    <!-- 进驻市民之家 -->
                    <div class="home" style="display: none">
                        <h3 class="blue pb10 mt20 pl10">进驻市民之家</h3>
                        <hr class="mqxz pl10">
                        <strong>目前现状</strong>
                        <table>
                            <tr>
                                <td class="txt_r pr10" width=20%>今年办件量(约)：</td>
                                <td class="txt_l" width=30%>
                                    <input type="text" readonly="true" value="998889" name="nowAmount"
                                           class="layui-input"/>
                                </td>
                                <td class="txt_r pr10" width=20%>是否实现网上办理：</td>
                                <td id="IsPurchased2" class="txt_l" width=30%>
                                    <input type="radio" value="1" name="onlineHandleFlag" lay-filter="bbb"/>
                                    <label>是</label>
                                    <input type="radio" value="2" name="onlineHandleFlag" lay-filter="bbb"/>
                                    <label>否</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="txt_r pr10 footnote home3" width=20%>请注明网址、手机APP渠道名称：</td>
                                <td class="footnote home3" width=30%>
                                    <input class="layui-input" type="text" value="${param.onlineHandleChannels!''}"
                                           name="onlineHandleChannels"/>
                                </td>
                                <td class="txt_r pr10 time home4" style="display: none" width=20%>实现时间：</td>
                                <td style="display: none" class="time home4" width=30%>
                                    <input type="text" class="layui-input" id="time1" placeholder="请选择实现时间"
                                           name="onlineHandleDate">
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="home2">
                        <table class="online">
                            <tr>
                                <td class="txt_r pr10" width=20%>网上办理途径：</td>
                                <td class="txt_l" width=30%>
                                    <input type="checkbox" value="网上申请" name="onlineHandleTypeNow"/>
                                    <label>网上申请</label>
                                    <input type="checkbox" value="网上预约" name="onlineHandleTypeNow"/>
                                    <label>网上预约</label>
                                </td>
                                <td class="txt_r pr10" width=20%>网上申请：</td>
                                <td width=30%>
                                    <input type="radio" value="1" name="onlineApplyTypeNow"/>
                                    <label>全程网办</label>
                                    <input type="radio" value="2" name="onlineApplyTypeNow"/>
                                    <label>原件预审</label>
                                    <input type="radio" value="3" name="onlineApplyTypeNow"/>
                                    <label>原件核验</label>
                                </td>

                            </tr>
                            <tr>
                                <td class="txt_r pr10">现场办理仅凭身份证：</td>
                                <td class="txt_l">
                                    <input type="radio" value="1" name="fieldIdcardFlagNow"/>
                                    <label>是</label>
                                    <input type="radio" value="2" name="fieldIdcardFlagNow"/>
                                    <label>否</label>
                                </td>
                                <td class="txt_r pr10">移动端与PC端：</td>
                                <td>
                                    <input type="checkbox" value="1" name="handleChannelNow"/>
                                    <label>移动端</label>
                                    <input type="checkbox" value="2" name="handleChannelNow"/>
                                    <label>PC端</label>
                                </td>
                            </tr>
                            <tr>
                                <td class="txt_r pr10">移动端名称：</td>
                                <td class="txt_l">
                                    <input type="text" class="layui-input" value="${param.appNameNow!''}"
                                           name="appNameNow"/>
                                </td>
                                <td class="txt_r pr10">网站名称及办事入口名称：</td>
                                <td>
                                    <input type="text" class="layui-input" value="${param.webNameNow!''}"
                                           name="webNameNow"/>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <span class="mqxz pl10"><strong>改革后情况</strong></span>
                    <hr>
                    <table>
                        <tr>
                            <td class="txt_r pr10" width=20%>网上办理途径：</td>
                            <td class="txt_l" width=30%>
                                <input type="checkbox" value="1" name="onlineHandleTypeReform"/>
                                <label>网上申请</label>
                                <input type="checkbox" value="2" name="onlineHandleTypeReform"/>
                                <label>网上预约（必须现场办理）</label>
                            </td>
                            <td class="txt_r pr10" width=20%>网上申请：</td>
                            <td>
                                <input type="radio" value="1" name="onlineApplyTypeReform"/>
                                <label>全程网办</label>
                                <input type="radio" value="2" name="onlineApplyTypeReform"/>
                                <label>原件预审</label>
                                <input type="radio" value="3" name="onlineApplyTypeReform"/>
                                <label>原件核验</label>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">移动端与PC端：</td>
                            <td class="txt_l">
                                <input type="checkbox" value="1" name="handleChannelReform"/>
                                <label>移动端</label>
                                <input type="checkbox" value="2" name="handleChannelReform"/>
                                <label>PC端</label>
                            </td>
                            <td class="txt_r pr10">证件信息：</td>
                            <td>
                                <input type="checkbox" value="1" name="idcardType"/>
                                <label>身份证</label>
                                <input type="checkbox" value="2" name="idcardType"/>
                                <label>人脸识别</label>

                            </td>

                        </tr>
                        <tr>
                            <td class="txt_r pr10">移动端名称：</td>
                            <td class="txt_l">
                                <input type="text" class="layui-input" value="${param.appNameForm!''}"
                                       name="appNameForm"/>
                            </td>
                            <td class="txt_r pr10">网站名称及办事入口名称：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.webNameForm!''}"
                                       name="webNameForm"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">需上传的资料名称：</td>
                            <td class="txt_l">
                                <input type="text" class="layui-input" value="${param.uploadMaterialsListReform!''}"
                                       name="uploadMaterialsListReform"/>
                            </td>
                            <td class="txt_r pr10">无法取消纸质材料及相关依据：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.cannotCancelMaterialReson!''}"
                                       name="cannotCancelMaterialReson"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">现场设备：</td>
                            <td class="txt_l">
                                <input type="checkbox" value="1" name="fieldDevices"/>
                                <label>高拍仪</label>
                                <input type="checkbox" value="2" name="fieldDevices"/>
                                <label>读卡器</label>
                                <input type="checkbox" value="3" name="fieldDevices"/>
                                <label>摄像头</label>
                            </td>
                            <td class="txt_r pr10">其他设备名称：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.otherDevices!''}"
                                       name="otherDevices"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">取消材料名称：</td>
                            <td class="txt_l">
                                <input type="text" class="layui-input" value="${param.cancelMaterialList!''}"
                                       name="cancelMaterialList"/>
                            </td>
                            <td class="txt_r pr10">需数据支持共享材料名称：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.datashareMaterialList!''}"
                                       name="datashareMaterialList"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">是否减环节：</td>
                            <td class="txt_l">
                                <input type="radio" value="1" name="reduceLinkFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="reduceLinkFlag"/>
                                <label>否</label>
                            </td>
                            <td class="txt_r pr10">减少环节数：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.reduceLinkCount!''}"
                                       name="reduceLinkCount"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">减环节名称：</td>
                            <td class="txt_l">
                                <input type="text" class="layui-input" value="${param.reduceLinkList!''}"
                                       name="reduceLinkList"/>
                            </td>
                            <td class="txt_r pr10">是否需要留存纸质案卷：</td>
                            <td>
                                <input type="radio" value="1" name="paperDossierFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="paperDossierFlag"/>
                                <label>否</label>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">电子印章个数：</td>
                            <td class="txt_l">
                                <input type="text" class="layui-input" value="${param.electronicSealCount!''}"
                                       name="electronicSealCount"/>
                            </td>
                            <td class="txt_r pr10">电子印章名称：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.electronicSealList!''}"
                                       name="electronicSealList"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">电子归档：</td>
                            <td class="txt_l pr10 city">
                                <input type="checkbox" value="1" name="electronicArchivingType"/>
                                <label>归入部门数字档案室</label>
                                <input type="checkbox" value="2" name="electronicArchivingType"/>
                                <label>接入全市统一归档系统</label>
                            </td>
                            <td class="txt_r pr10">业务系统建设模式：</td>
                            <td>
                                <input type="checkbox" value="1" name="systemOrigin"/>
                                <label>自建系统</label>
                                <input type="checkbox" value="2" name="systemOrigin"/>
                                <label>市统建系统</label>
                                <input type="checkbox" value="3" name="systemOrigin"/>
                                <label>垂管系统</label>
                            </td>
                        </tr>
                    </table>

                    <!-- 个人办事 -->
                    <h3 class="blue mt20 pl10">个人办事</h3>
                    <table>
                        <tr>
                            <td class="txt_r pr10" width=20%>需要到场次数：</td>
                            <td width=30%>
                                <select style="width: 150px" id="personCountSelect" name="personCount">
                                    <option value="0">0</option>
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                </select>
                            </td>
                            <td class="txt_r pr10" width=20%>是否可以实现最多跑一次：</td>
                            <td class="txt_l " id="IsPurchased7" width=30%>
                                <input type="radio" value="1" name="onceFlag" lay-filter="onceFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="onceFlag" lay-filter="onceFlag"/>
                                <label>否</label>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10 time home7" style="display: none">实现一次跑完时间：</td>
                            <td style="display: none" class="time home7">
                                <input type="text" class="layui-input" id="time2" placeholder="请选择时间"
                                       name="onceRealizationDate">
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">仅需身份证或市民卡就可办理：</td>
                            <td class="txt_l" id="idCardFalgID">
                                <input type="radio" value="1" name="idcardFlag" lay-filter="idCardFalgaaa"/>
                                <label>已可</label>
                                <input type="radio" value="2" name="idcardFlag" lay-filter="idCardFalgaaa"/>
                                <label>拟可</label>
                                <input type="radio" value="3" name="idcardFlag" lay-filter="idCardFalgaaa"/>
                                <label>不可</label>
                            </td>
                            <td class="txt_r pr10">材料名称：</td>
                            <td>
                                <a style=" float:right;" href="#">
                                    <input type="button" value="添加" id="add_materialsListLocal"
                                           class="layui-btn"/>
                                </a>
                                <input type="text" value="" id="subproject_materialsListLocal"
                                       class="layui-input auto"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">本地市民需要材料清单：</td>
                            <td class=" pr10" colspan="5" id="list_materialsListLocal">
                                <input type="hidden" class="value_materialsListLocal" value=""
                                       name="materialsListLocal">
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">非本地市民是否可办理：</td>
                            <td class="txt_l" colspan="5" id="IsPurchased8">
                                <input type="radio" value="1" name="outsideHandleFlag" lay-filter="outsideHandleFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="outsideHandleFlag" lay-filter="outsideHandleFlag"/>
                                <label>否</label>
                            </td>
                        </tr>
                        <tr class="home8">
                            <td class="txt_r pr10">材料名称（非）：</td>
                            <td>
                                <input type="text" value="" id="subproject_materialsListOutside"
                                       class="layui-input"/>
                            </td>
                            <td colspan="2">
<#--                                <a style=" float:right;" href="#">-->
                                    <input type="button" value="添加" id="add_materialsListOutside"
                                           class="layui-btn"/>
<#--                                </a>-->
                            </td>
                        </tr>
                        <tr>
                            <td class="home9 txt_r pr10">非本地市民需要材料清单：</td>
                            <td class=" pr10" colspan="5" id="list_materialsListOutside">
                                <input type="hidden" class="value_materialsListOutside" value=""
                                       name="materialsListOutside">
                            </td>
                        </tr>
                        <tr class="home10" style="display:none">
                            <td class="txt_r pr10">不对非本地市民办理原因：</td>
                            <td colspan="5">
                                <input type="text" class="layui-input" value="${param.outsideReason!''}"
                                       name="outsideReason"/>
                            </td>
                        </tr>
                        <tr class="home111" style="display:none">
                            <td class="txt_r pr10">主要改革措施：</td>
                            <td colspan="5" class="txt_l" id="changeMeasure">
                                <input type="checkbox" value="委托授权" name="changeMeasure" lay-filter="changeMeasureaaa"/>
                                <label>委托授权</label>
                                <input type="checkbox" value="数据共享" name="changeMeasure" lay-filter="changeMeasureaaa"/>
                                <label>数据共享</label>
                                <input type="checkbox" value="法律法规" name="changeMeasure" lay-filter="changeMeasureaaa"/>
                                <label>法律法规</label>
                                <input type="checkbox" value="联办事项" name="changeMeasure" lay-filter="changeMeasureaaa"/>
                                <label>联办事项</label>
                                <input type="checkbox" value="其他" name="changeMeasure" lay-filter="changeMeasureaaa"/>
                                <label>其他</label>
                            </td>
                        </tr>
                        <tr class="home11" style="display:none">
                            <td class="txt_r pr10">委托授权说明：</td>
                            <td colspan="5">
                                <input type="text" class="layui-input" value="${param.delegateAuthorization!''}"
                                       name="delegateAuthorization"/>
                            </td>
                        </tr>
                        <tr class="home12" style="display:none">
                            <td class="txt_r pr10">数据共享说明：</td>
                            <td colspan="5">
                                <input type="text" class="layui-input" value="${param.dataSharing!''}"
                                       name="dataSharing"/>
                            </td>
                        </tr>
                        <tr class="home13" style="display:none">
                            <td class="txt_r pr10">法律法规说明：</td>
                            <td colspan="5">
                                <input type="text" class="layui-input" value="${param.regulations!''}"
                                       name="regulations"/>
                            </td>
                        </tr>
                        <tr class="home14" style="display:none">
                            <td class="txt_r pr10">联办事项说明：</td>
                            <td colspan="5">
                                <input type="text" class="layui-input" value="${param.jointMatter!''}"
                                       name="jointMatter"/>
                            </td>
                        </tr>
                        <tr class="home222" style="display:none">
                            <td class="txt_r pr10">取消证明材料名称：</td>
                            <td>
                                <input type="text" value="" id="subproject_cancelMaterialsList" class="layui-input"/>
                            </td>
                            <td colspan="2">
<#--                                <a style=" float:right;" href="#">-->
                                    <input type="button" value="添加" id="add_cancelMaterialsList" class="layui-btn"/>
<#--                                </a>-->
                            </td>
                        </tr>
                        <tr class="home333" style="display:none">
                            <td class="txt_r pr10">取消证明材料清单：</td>
                            <td class=" pr10" colspan="5" id="list_cancelMaterialsList">
                                <input type="hidden" class="textbox-value" value="" name="cancelMaterialsList">
                            </td>
                        </tr>
                        <tr class="home444" style="display:none">
                            <td class="txt_r pr10">证明材料信息涉及部门：</td>
                            <td>
                                <input type="text" value="" id="subproject_materialsDeptList" class="layui-input"/>
                            </td>
                            <td colspan="2">
<#--                                <a style=" float:right;" href="#">-->
                                    <input type="button" value="添加" id="add_materialsDeptList" class="layui-btn"/>
<#--                                </a>-->
                            </td>
                        </tr>
                        <tr class="home555" style="display:none">
                            <td class="txt_r pr10">证明材料信息涉及部门：</td>
                            <td class=" pr10" colspan="5" id="list_materialsDeptList">
                                <input type="hidden" class="value_materialsDeptList" value="" name="materialsDeptList">
                            </td>
                        </tr>
                    </table>
                    <!-- 通用信息 -->
                    <h3 class="blue mt20 pl10">通用信息</h3>
                    <hr class="mb20">
                    <table>
                        <tr>
                            <td class="txt_r pr10" width=20%>是否有自助机：</td>
                            <td class="txt_l" width=30%>
                                <input type="radio" value="1" name="selfServiceFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="selfServiceFlag"/>
                                <label>否</label>
                            </td>
                            <td class="txt_r pr10" width=20%>自助机放置地点：</td>
                            <td width=30%>
                                <input class="layui-input" type="text" name="selfServiceAddr"
                                       value="${param.selfServiceAddr!''}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">自助机功能：</td>
                            <td class="txt_l">
                                <input type="checkbox" value="1" name="selfServiceFunc"/>
                                <label>查询功能</label>
                                <input type="checkbox" value="2" name="selfServiceFunc"/>
                                <label>办事功能</label>
                            </td>
                            <td class="txt_r pr10">改革完成时间：</td>
                            <td>
                                <input type="text" id="time3" placeholder="请选择时间" class="layui-input" value=""
                                       name="reformDate">
                            </td>

                        </tr>
                        <tr>
                            <td class="txt_r pr10">是否有业务咨询网站：</td>
                            <td class="txt_l">
                                <input type="radio" value="1" name="bizConsultingWebFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="bizConsultingWebFlag"/>
                                <label>否</label>
                            </td>
                            <td class="txt_r pr10">咨询网站地址：</td>
                            <td>
                                <input type="text" class="layui-input" name="bizConsultingWebAddr"
                                       value="${param.bizConsultingWebAddr!''}"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">业务咨询电话是否归入12345：</td>
                            <td class="txt_l">
                                <input type="radio" value="1" name="bringHotlineFlag"/>
                                <label>是</label>
                                <input type="radio" value="2" name="bringHotlineFlag"/>
                                <label>否</label>
                            </td>
                            <td class="txt_r pr10">业务咨询热线：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.bizConsultingHotline!''}"
                                       maxlength=11 name="bizConsultingHotline"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">备注：</td>
                            <td colspan="5">
                                <textarea name="remarks" id="remarksId" value="" class="layui-textarea"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">填报单位：</td>
                            <td>
                                <input type="text" class="layui-input" name="reportingUnit"
                                       value="${param.reportingUnit!''}"/>
                            </td>
                            <td class="txt_r pr10">联系电话：</td>
                            <td>
                                <input id="telephoneNumber" type="text" value="${param.telephoneNumber!''}" maxlength=11
                                       class="layui-input" name="telephoneNumber"
                                       oninput="value=value.replace(/[^\d]/g,'')"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">联系人：</td>
                            <td>
                                <input type="text" class="layui-input" value="${param.username!''}" name="username"/>
                            </td>
                            <td class="txt_r pr10">信息化管理系统：</td>
                            <td class="txt_l">
                                <input type="text" class="layui-input" value="${param.informationSystemName!''}"
                                       name="informationSystemName"/>
                            </td>
                        </tr>

                        <tr>
                            <td class="txt_r pr10">模板下载：</td>
                            <td class="txt_l">
                                <a href="/static/excel/matterTable.xls">
                                    <button type="button" class="layui-btn layui-btn-sm">
                                        Excel模板下载
                                    </button>
                                </a>
                            </td>
                            <td class="txt_r pr10">法律法规名称：</td>
                            <td colspan="5">
                                <input type="text" class="layui-input" value="${param.legalName!''}" name="legalName"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="txt_r pr10">具体条款：</td>
                            <td colspan="5">
                                <textarea name="specificTerms" id="specificTermsId" value=""
                                          class="layui-textarea"></textarea>
                            </td>
                        </tr>
                    </table>
                </form>

                <form class="layui-form layout-form" action="/tMatter/approvalUpdate?applyNum=${param.applyNum}"
                      id="approvalUpdate">
                    <h3 class="blue" style="margin-left: 20px;margin-top: 30px;margin-bottom: 30px"> 审核信息</h3>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核状态</label>
                        <div class="layui-input-block">
                            <select name="result" lay-filter="aihao">
                                <option value="2" selected>审核通过</option>
                                <option value="3">审核不通过</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">原因</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" name="auditOpinion" class="layui-textarea"></textarea>
                        </div>
                    </div>
                    <div class="layui-input-block submit-btn-area">
                        <button class="layui-btn" type="submit">保存</button>
                        <button type="button" class="layui-btn layui-btn-primary"
                                onclick="onClose();">取消
                        </button>
                    </div>
                </form>

            </div>
        </div>
    </div>
    <script>

        layui.use(['laydate', 'form', 'global', 'upload', 'jquery.form.min'], function () {
            var laydate = layui.laydate, form = layui.form, $ = layui.$, upload = layui.upload;

            $('#approvalUpdate').ajaxForm({
                success: function (data) {
                    if (data.success == true) {
                        window.open('/tMatter/approvalPage', '_self')
                    }
                }
            });

            //节点获取
            $.ajax({
                url: '/tMatter/approvalNodeData?applyNum=' + "${param.applyNum}",
                type: 'get',
                success: function (res) {
                    var approvalNodeList = res.data
                    for (var i = 0; i < approvalNodeList.length; i++) {
                        var li = '<li class="layui-timeline-item">\n' +
                            '                <i class="layui-icon layui-timeline-axis">&#xe63f;</i>\n' +
                            '                <div class="layui-timeline-content layui-text">\n' +
                            '                    <h3 class="layui-timeline-title">部门信息：' + (approvalNodeList[i].deptName) + '</h3>\n' +
                            '                    <p>节点审批结果：' + (approvalNodeList[i].result == 1 ? '未审批' : (approvalNodeList[i].result == 2 ? '通过' : '驳回')) + '</p>' +
                            '                    <p>审批时间：' + (approvalNodeList[i].modifyTime || '') + '</p>\n' +
                            '                    <p>审批人：' + (approvalNodeList[i].approvalName || '') + '</p>\n' +
                            '                </div>\n' +
                            '            </li>'
                        $('.ul').append(li)
                    }
                }
            })

            //节点审批结果
            $.ajax({
                url: '/tMatter/approvalNodeResult?applyNum=' + "${param.applyNum}",
                type: 'get',
                success: function (data, status, xhr) {
                    if (data) {
                        $('#approvalUpdate').hide()
                    }
                }
            })

            //------------时间选择器1--------          
            laydate.render({
                elem: '#time1',
                type: 'date',
                value: <#if param.onlineHandleDate??>'${param.onlineHandleDate?date}'<#else>''</#if>
            });
            //------------时间选择器2--------   
            laydate.render({
                elem: '#time2',
                type: 'date',
                value: <#if param.onceRealizationDate??>'${param.onceRealizationDate?date}'<#else>''</#if>
            });
            //------------时间选择器3--------   
            laydate.render({
                elem: '#time3',
                type: 'date',
                value: <#if param.reformDate??>'${param.reformDate?date}'<#else>''</#if>
            });
            // ----------去除数字中的逗号------------------
            //var tel = '${param.telephoneNumber!''}';
            //document.getElementById("telephoneNumber").value=tel.replace(',','').replace(',','').replace(',','');

            //--------------备注textarea自动带出----------
            var remarks = '${param.remarks}';
            remarks = remarks.replace(/(#replace#)+/g, '\n');
            if (remarks != '') {
                $("#remarksId").val(remarks);
            }

            //--------------具体条款textarea自动带出----------
            var specificTerms = '${param.specificTerms}';
            specificTerms = specificTerms.replace(/(#replace#)+/g, '\n');
            if (specificTerms != '') {
                $("#specificTermsId").val(specificTerms);
            }

            //-----------事项种类（大类）自动带出matterAttr----------
            var matter = '${param.matterAttr}';
            if (matter == "2") {
                $("input[name='matterAttr']").eq(1).attr("checked", "checked");
                $("#administrative4").show();
                $("#administrative4").val('${param.powerMatterType}');
            }
            //-----------事项种类（小类）自动带出matterType-----------
            if ('${param.matterType!''}'.includes("个人")) {
                $("input[name='matterType']").eq(0).attr("checked", "checked");
            }
            if ('${param.matterType!''}'.includes("法人")) {
                $("input[name='matterType']").eq(1).attr("checked", "checked");
            }
            if ('${param.matterType!''}'.includes("其他")) {
                $("input[name='matterType']").eq(2).attr("checked", "checked");
            }
            //--------------------是否常用事项---------------------------
            if ('${param.commonMatterFlag!''}' == 1) {
                $("input[name='commonMatterFlag']").eq(0).attr("checked", "checked");
            } else {
                $("input[name='commonMatterFlag']").eq(1).attr("checked", "checked");
            }
            //---------------------可在哪些层级部门办理自动带出--------------------
            if ('${param.handleDeptLevel!''}'.includes("省级")) {
                $("input[name='handleDeptLevel']").eq(0).attr("checked", "checked");
            }
            if ('${param.handleDeptLevel!''}'.includes("市级")) {
                $("input[name='handleDeptLevel']").eq(1).attr("checked", "checked");
            }
            if ('${param.handleDeptLevel!''}'.includes("区")) {
                $("input[name='handleDeptLevel']").eq(2).attr("checked", "checked");
            }
            if ('${param.handleDeptLevel!''}'.includes("县")) {
                $("input[name='handleDeptLevel']").eq(3).attr("checked", "checked");
            }
            if ('${param.handleDeptLevel!''}'.includes("街道、乡镇")) {
                $("input[name='handleDeptLevel']").eq(4).attr("checked", "checked");
            }
            if ('${param.handleDeptLevel!''}'.includes("社户")) {
                $("input[name='handleDeptLevel']").eq(5).attr("checked", "checked");
                $(".home6").show();

                //----------------------社区办理自动带出--------------------------
                var wayCommunityHandle = '${param.wayCommunityHandle}';
                if ('${param.wayCommunityHandle}' != "") {
                    $("#wayCommunityHandleID").val('${param.wayCommunityHandle}');
                }
            }

            //---------------是否已进驻市民之家自动带出-------------------------------
            if ('${param.publicServiceFlag!''}' == 1) {
                $("input[name='publicServiceFlag']").eq(0).attr("checked", "checked");
                $(".home").show();
            } else {
                $("input[name='publicServiceFlag']").eq(1).attr("checked", "checked");
            }
            //-------------------是否实现网上办理自动带出----------------------------
            if ('${param.onlineHandleFlag!''}' == 1) {
                $("input[name='onlineHandleFlag']").eq(0).attr("checked", "checked");
                $(".home3").show();
                $(".home4").hide();
            } else if ('${param.onlineHandleFlag!''}' == 2) {
                $("input[name='onlineHandleFlag']").eq(1).attr("checked", "checked");
                $(".home3").hide();
                $(".home4").show();
            }
            //---------------------网上办理途径自动带出------------------------------
            if ('${param.onlineHandleTypeNow!''}'.includes("网上申请")) {
                $("input[name='onlineHandleTypeNow']").eq(0).attr("checked", "checked");
            }
            if ('${param.onlineHandleTypeNow!''}'.includes("网上预约")) {
                $("input[name='onlineHandleTypeNow']").eq(1).attr("checked", "checked");
            }
            //----------------------------网上申请自动带出-----------------------
            if ('${param.onlineApplyTypeNow!''}' == "1") {
                $("input[name='onlineApplyTypeNow']").eq(0).attr("checked", "checked");
            } else if ('${param.onlineApplyTypeNow!''}' == "2") {
                $("input[name='onlineApplyTypeNow']").eq(1).attr("checked", "checked");
            } else if ('${param.onlineApplyTypeNow!''}' == "3") {
                $("input[name='onlineApplyTypeNow']").eq(2).attr("checked", "checked");
            }
            //--------------------现场办理仅凭身份证自动带出--------------------------
            if ('${param.fieldIdcardFlagNow!''}' == 1) {
                $("input[name='fieldIdcardFlagNow']").eq(0).attr("checked", "checked");
            } else if ('${param.fieldIdcardFlagNow!''}' == 2) {
                $("input[name='fieldIdcardFlagNow']").eq(1).attr("checked", "checked");
            }
            //---------------------移动端与PC端自动带出---------------------           
            if ('${param.handleChannelNow!''}'.includes("1")) {
                $("input[name='handleChannelNow']").eq(0).attr("checked", "checked");
            }
            if ('${param.handleChannelNow!''}'.includes("2")) {
                $("input[name='handleChannelNow']").eq(1).attr("checked", "checked");
            }
            //--------------网上办理途径2自动带出        网上申请   网上预约（必须现场办理）-------------
            if ('${param.onlineHandleTypeReform!''}'.includes("1")) {
                $("input[name='onlineHandleTypeReform']").eq(0).attr("checked", "checked");
            }
            if ('${param.onlineHandleTypeReform!''}'.includes("2")) {
                $("input[name='onlineHandleTypeReform']").eq(1).attr("checked", "checked");
            }
            //----------------------------网上申请2自动带出-----------------------
            if ('${param.onlineApplyTypeReform!''}' == "1") {
                $("input[name='onlineApplyTypeReform']").eq(0).attr("checked", "checked");
            } else if ('${param.onlineApplyTypeReform!''}' == "2") {
                $("input[name='onlineApplyTypeReform']").eq(1).attr("checked", "checked");
            } else if ('${param.onlineApplyTypeReform!''}' == "3") {
                $("input[name='onlineApplyTypeReform']").eq(2).attr("checked", "checked");
            }

            //-------------------移动端与PC端2自动带出  -----------------------          
            if ('${param.handleChannelReform!''}'.includes("1")) {
                $("input[name='handleChannelReform']").eq(0).attr("checked", "checked");
            }
            if ('${param.handleChannelReform!''}'.includes("2")) {
                $("input[name='handleChannelReform']").eq(1).attr("checked", "checked");
            }
            //----------------------证件信息自动带出---------------------------
            if ('${param.idcardType!''}'.includes("1")) {
                $("input[name='idcardType']").eq(0).attr("checked", "checked");
            }
            if ('${param.idcardType!''}'.includes("2")) {
                $("input[name='idcardType']").eq(1).attr("checked", "checked");
            }
            //--------------------现场设备自动带出--------------------
            if ('${param.fieldDevices!''}'.includes("1")) {
                $("input[name='fieldDevices']").eq(0).attr("checked", "checked");
            }
            if ('${param.fieldDevices!''}'.includes("2")) {
                $("input[name='fieldDevices']").eq(1).attr("checked", "checked");
            }
            if ('${param.fieldDevices!''}'.includes("3")) {
                $("input[name='idcardType']").eq(2).attr("checked", "checked");
            }
            //------------------是否减环节自动带出---------------------------
            if ('${param.reduceLinkFlag!''}' == 1) {
                $("input[name='reduceLinkFlag']").eq(0).attr("checked", "checked");
            } else {
                $("input[name='reduceLinkFlag']").eq(1).attr("checked", "checked");
            }
            //------------------------是否需要留存纸质案卷自动带出---------------------
            if ('${param.paperDossierFlag!''}' == 1) {
                $("input[name='paperDossierFlag']").eq(0).attr("checked", "checked");
            } else if ('${param.paperDossierFlag!''}' == 2) {
                $("input[name='paperDossierFlag']").eq(1).attr("checked", "checked");
            }
            //----------------------------电子归档自动带出----------------------------
            if ('${param.electronicArchivingType!''}'.includes("1")) {
                $("input[name='electronicArchivingType']").eq(0).attr("checked", "checked");
            }
            if ('${param.electronicArchivingType!''}'.includes("2")) {
                $("input[name='electronicArchivingType']").eq(1).attr("checked", "checked");
            }
            //-----------------------------业务系统建设模式自动带出------------------
            if ('${param.systemOrigin!''}'.includes("1")) {
                $("input[name='systemOrigin']").eq(0).attr("checked", "checked");
            }
            if ('${param.systemOrigin!''}'.includes("2")) {
                $("input[name='systemOrigin']").eq(1).attr("checked", "checked");
            }
            if ('${param.systemOrigin!''}'.includes("3")) {
                $("input[name='systemOrigin']").eq(2).attr("checked", "checked");
            }
            //------------------------到场次数自动带出----------------------
            var personCount = '${param.personCount}';
            if ('${param.personCount}' != "") {
                $("#personCountSelect").val('${param.personCount}');
            }

            var matter = '${param.matterAttr}';
            if (matter == "2") {
                $("input[name='matterAttr']").eq(1).attr("checked", "checked");
                $(".home5").show();
                $("#administrative").val('${param.powerMatterType}');
            }
            //--------------------------是否可以实现最多跑一次自动带出------------------
            if ('${param.onceFlag!''}' == 1) {
                $("input[name='onceFlag']").eq(0).attr("checked", "checked");
            } else if ('${param.onceFlag!''}' == 2) {
                $("input[name='onceFlag']").eq(1).attr("checked", "checked");
                $(".home7").show();
            }
            //仅需身份证或市民卡就可办理自动带出
            if ('${param.idcardFlag!''}' == 1) {
                $("input[name='idcardFlag']").eq(0).attr("checked", "checked");
            } else if ('${param.idcardFlag!''}' == 2) {
                $("input[name='idcardFlag']").eq(1).attr("checked", "checked");
                $(".home111").show();
                $(".home222").show();
                $(".home333").show();
                $(".home444").show();
                $(".home555").show();
            } else if ('${param.idcardFlag!''}' == 3) {
                $("input[name='idcardFlag']").eq(2).attr("checked", "checked");
            }
            //非本地市民是否可办理自动带出
            if ('${param.outsideHandleFlag!''}' == 1) {
                $("input[name='outsideHandleFlag']").eq(0).attr("checked", "checked");
                $(".home8").show();
                $(".home9").show();
                $(".home10").hide();
            } else if ('${param.outsideHandleFlag!''}' == 2) {
                $("input[name='outsideHandleFlag']").eq(1).attr("checked", "checked");
                $(".home8").hide();
                $(".home9").hide();
                $(".home10").show();
            }
            //主要改革措施自动带出
            if ('${param.changeMeasure!''}'.includes("委托授权")) {
                $("input[name='changeMeasure']").eq(0).attr("checked", "checked");
                $(".home11").show();
            }
            if ('${param.changeMeasure!''}'.includes("数据共享")) {
                $("input[name='changeMeasure']").eq(1).attr("checked", "checked");
                $(".home12").show();
            }
            if ('${param.changeMeasure!''}'.includes("法律法规")) {
                $("input[name='changeMeasure']").eq(2).attr("checked", "checked");
                $(".home13").show();
            }
            if ('${param.changeMeasure!''}'.includes("联办事项")) {
                $("input[name='changeMeasure']").eq(3).attr("checked", "checked");
                $(".home14").show();
            }
            if ('${param.changeMeasure!''}'.includes("其他")) {
                $("input[name='changeMeasure']").eq(4).attr("checked", "checked");
            }
            //是否实现网上办理自动带出
            if ('${param.outsideHandleFlag!''}' == 1) {
                $("input[name='handleDate']").eq(0).attr("checked", "checked");
            } else {
                $("input[name='handleDate']").eq(1).attr("checked", "checked");
            }
            //是否有自助机自动带出
            if ('${param.selfServiceFlag!''}' == 1) {
                $("input[name='selfServiceFlag']").eq(0).attr("checked", "checked");
            } else {
                $("input[name='selfServiceFlag']").eq(1).attr("checked", "checked");
            }
            //自助机功能自动带出
            if ('${param.selfServiceFunc!''}'.includes("1")) {
                $("input[name='selfServiceFunc']").eq(0).attr("checked", "checked");
            }
            if ('${param.selfServiceFunc!''}'.includes("2")) {
                $("input[name='selfServiceFunc']").eq(1).attr("checked", "checked");
            }
            //是否有业务咨询网站自动带出
            if ('${param.bizConsultingWebFlag!''}' == 1) {
                $("input[name='bizConsultingWebFlag']").eq(0).attr("checked", "checked");
            } else {
                $("input[name='bizConsultingWebFlag']").eq(1).attr("checked", "checked");
            }
            //业务咨询电话是否归入12345自动带出
            if ('${param.bringHotlineFlag!''}' == 1) {
                $("input[name='bringHotlineFlag']").eq(0).attr("checked", "checked");
            } else {
                $("input[name='bringHotlineFlag']").eq(1).attr("checked", "checked");
            }
            //删除状态自动带出
            if ('${param.state!''}' == 1) {
                $("input[name='state']").eq(0).attr("checked", "checked");
            } else {
                $("input[name='state']").eq(1).attr("checked", "checked");
            }

            //----------------------市民之家带出事件-------------------------
            form.on('radio(aaa)', function (data) {
                if ($('#IsPurchased input[name="publicServiceFlag"]:checked ').val() == 1) {
                    $(".home").show();
                } else {
                    $(".home").hide();
                }
                form.render();
            });

            //---------------是否实现网上办理带出部分-------------------
            form.on('radio(bbb)', function (data) {
                if ($('#IsPurchased2 input[name="onlineHandleFlag"]:checked ').val() == 1) {
                    $(".home2").show();
                    $(".home3").show();
                    $(".home4").hide();
                } else {
                    $(".home2").hide();
                    $(".home3").hide();
                    $(".home4").show();
                }
                form.render();
            });

            $('#updateItemForm').ajaxForm({
                success: function (data) {
                    if (data.success) {
                        layer.closeAll();
                        layer.msg("更新成功。", {
                            time: 1000
                        });
                        parent.reloadTable();
                    }
                }
            });
            window.onClose = function () {
                history.back();
            };
            form.render();

            $("input[name='item'] ").click(function () {
                $('.mold').val('');
                if ($(this).val()) {
                    $('.mold').val($(this).siblings().text())
                }
            })

            layui.use('form', function () {
                var form = layui.form;
                //-------------------小项动态添加事件带出操作--------------------------
                var litMatterNames = '${param.litPowerMatterName!''}';
                litMatterNames = litMatterNames.slice(0, -1).split(";");
                for (var i = 0; i < litMatterNames.length; i++) {
                    if (litMatterNames[i] != '') {
                        var item = '<a href="javascript:void(0)" class="btnn"><span>' + litMatterNames[i] +
                            '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                        $("#subproject_list").append(item);
                    }
                }
                //--------------------本地市民材料动态添加带出操作 -------------------------
                var materialsListLocalNames = '${param.materialsListLocal!''}';
                materialsListLocalNames = materialsListLocalNames.slice(0, -1).split(";");
                for (var i = 0; i < materialsListLocalNames.length; i++) {
                    if (materialsListLocalNames[i] != '') {
                        var item = '<a href="javascript:void(0)" class="btnn"><span>' + materialsListLocalNames[i] +
                            '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                        $("#list_materialsListLocal").append(item);
                    }
                }
                //------------------------非本地市民材料动态添加带出操作-----------------------------------
                var materialsListOutsideNames = '${param.materialsListOutside!''}';
                materialsListOutsideNames = materialsListOutsideNames.slice(0, -1).split(";");
                for (var i = 0; i < materialsListOutsideNames.length; i++) {
                    if (materialsListOutsideNames[i] != '') {
                        var item = '<a href="javascript:void(0)" class="btnn"><span>' + materialsListOutsideNames[i] +
                            '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                        $("#list_materialsListOutside").append(item);
                    }
                }
                //--------------------------取消证明材料动态添加带出操作-----------------------------------
                var cancelMatterNames = '${param.cancelMaterialsList!''}';
                cancelMatterNames = cancelMatterNames.slice(0, -1).split(";");
                for (var i = 0; i < cancelMatterNames.length; i++) {
                    if (cancelMatterNames[i] != '') {
                        var item = '<a href="javascript:void(0)" class="btnn"><span>' + cancelMatterNames[i] +
                            '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                        $("#list_cancelMaterialsList").append(item);
                    }
                }
                //----------------------------信息涉及部门材料添加事件带出操作 -------------------------------
                var matterDeptNames = '${param.materialsDeptList!''}';
                matterDeptNames = matterDeptNames.slice(0, -1).split(";");
                for (var i = 0; i < matterDeptNames.length; i++) {
                    if (matterDeptNames[i] != '') {
                        var item = '<a href="javascript:void(0)" class="btnn"><span>' + matterDeptNames[i] +
                            '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                        $("#list_materialsDeptList").append(item);
                    }
                }

            });

            layui.use('form', function () {
                var form = layui.form;
                form.on('radio(ccc)', function (data) {
                    if ($('#IsPurchased3 input[name="handleDate"]:checked ').val() == 1) {
                        $(".home3").show();
                        $(".home4").hide();
                    } else {
                        $(".home3").hide();
                        $(".home4").show();
                    }
                    form.render();
                });
            });

            layui.use('form', function () {
                var form = layui.form;
                form.on('radio(ddd)', function (data) {
                    if ($('#IsPurchased4 input[name="matterAttr"]:checked ').val() == "1") {
                        $("#administrative4").hide();
                    } else {
                        $("#administrative4").show();
                    }
                    form.render();
                });
            });

            window.seve = function () {
                $('#seve').click()

            }

            //---------------社区办理联动-----------------
            layui.use('form', function () {
                var form = layui.form;
                form.on('checkbox(fff)', function (data) {
                    $(".home6").hide();
                    for (var i = 0; i < $('#IsPurchased6 input[name="handleDeptLevel"]:checked').length; i++) {
                        if ($('#IsPurchased6 input[name="handleDeptLevel"]:checked')[i].value == '社户') {
                            $(".home6").show();
                        }
                    }
                    form.render();
                });
            });

            //-------------一次跑完时间联动-------------------
            layui.use('form', function () {
                var form = layui.form;
                form.on('radio(onceFlag)', function (data) {
                    if ($('#IsPurchased7 input[name="onceFlag"]:checked ').val() == "2") {
                        $(".home7").show();
                    } else if ($('#IsPurchased7 input[name="onceFlag"]:checked ').val() == "1") {
                        $(".home7").hide();
                    }
                    form.render();
                });
            });

            //--------------------非本地市民不办理联动--------------------
            layui.use('form', function () {
                var form = layui.form;
                form.on('radio(outsideHandleFlag)', function (data) {
                    if ($('#IsPurchased8 input[name="outsideHandleFlag"]:checked ').val() == "1") {
                        $(".home8").show();
                        $(".home9").show();
                        $(".home10").hide();
                    } else if ($('#IsPurchased8 input[name="outsideHandleFlag"]:checked ').val() == "2") {
                        $(".home8").hide();
                        $(".home9").hide();
                        $(".home10").show();
                    }
                    form.render();
                });
            });

            //----------------------非本地市民不办理联动--------------------
            layui.use('form', function () {
                var form = layui.form;
                form.on('checkbox(changeMeasureaaa)', function (data) {
                    $(".home11,.home12,.home13,.home14").hide();
                    for (var i = 0; i < $('#changeMeasure input[name="changeMeasure"]:checked').length; i++) {
                        if ($('#changeMeasure input[name="changeMeasure"]:checked')[i].value == '委托授权') {
                            $(".home11").show();
                        } else if ($('#changeMeasure input[name="changeMeasure"]:checked')[i].value == '数据共享') {
                            $(".home12").show();
                        } else if ($('#changeMeasure input[name="changeMeasure"]:checked')[i].value == '法律法规') {
                            $(".home13").show();
                        } else if ($('#changeMeasure input[name="changeMeasure"]:checked')[i].value == '联办事项') {
                            $(".home14").show();
                        }
                    }
                    form.render();
                });
            });

            //-----------拟可联动事件--------------
            layui.use('form', function () {
                var form = layui.form;
                form.on('radio(idCardFalgaaa)', function (data) {
                    if ($('#idCardFalgID input[name="idcardFlag"]:checked ').val() == "2") {
                        $(".home111").show();
                        $(".home222").show();
                        $(".home333").show();
                        $(".home444").show();
                        $(".home555").show();
                    } else if ($('#idCardFalgID input[name="idcardFlag"]:checked ').val() == "1") {
                        $(".home111").hide();
                        $(".home222").hide();
                        $(".home333").hide();
                        $(".home444").hide();
                        $(".home555").hide();
                    } else if ($('#idCardFalgID input[name="idcardFlag"]:checked ').val() == "3") {
                        $(".home111").hide();
                        $(".home222").hide();
                        $(".home333").hide();
                        $(".home444").hide();
                        $(".home555").hide();
                    }
                    form.render();
                });

                //----------------小项动态添加事件----------------
                $("#add_subproject").on('click', function () {
                    var itemName = $('#subproject').val();
                    $(".textbox-value").val(itemName);
                    var a = itemName.replace(/(^\s*)|(\s*$)/g, "");
                    $("#subproject_list").show();
                    if (a != '') {
                        var item = '<a href="javascript:void(0)" class="btnn"><span>' + itemName + '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                        $("#subproject_list").append(item);
                    } else {
                        alert("请输入小项名称!");
                    }
                    $("#subproject").val("");
                });

                //--------------------小项清单删除-------------------
                $("#subproject_list").on("click", "i", function () {
                    $(this).closest("a").remove();
                });
            });


            //----------------------材料动态添加事件--------------------
            $("#add_materialsListLocal").on('click', function () {
                var itemName = $('#subproject_materialsListLocal').val();
                $(".value_materialsListLocal").val(itemName);
                var a = itemName.replace(/(^\s*)|(\s*$)/g, "");
                $("#lis_tmaterialsListLocal").show();
                if (a != '') {
                    var item = '<a href="javascript:void(0)" class="btnn"><span>' + itemName + '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                    $("#list_materialsListLocal").append(item);
                } else {
                    alert("请输入材料名称!");
                }
                $("#subproject_materialsListLocal").val("");
            });
            //-----------------材料清单删除---------------------
            $("#list_materialsListLocal").on("click", "i", function () {
                $(this).closest("a").remove();
                // stopEvent(event);
            });

            //--------------------材料动态添加事件（非）----------------
            $("#add_materialsListOutside").on('click', function () {
                var itemName = $('#subproject_materialsListOutside').val();
                $(".value_materialsListOutside").val(itemName);
                var a = itemName.replace(/(^\s*)|(\s*$)/g, "");
                $("#list_materialsListOutside").show();
                if (a != '') {
                    var item = '<a href="javascript:void(0)" class="btnn"><span>' + itemName + '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                    $("#list_materialsListOutside").append(item);
                } else {
                    alert("请输入材料名称（非）! ");
                }
                $("#subproject_materialsListOutside").val("");
            });
            //------------------材料清单删除（非）------------------
            $("#list_materialsListOutside").on("click", "i", function () {
                $(this).closest("a").remove();
            });

            //----------------取消证明材料动态添加事件--------------
            $("#add_cancelMaterialsList").on('click', function () {
                var itemName = $('#subproject_cancelMaterialsList').val();
                $(".value_cancelMaterialsList").val(itemName);
                var a = itemName.replace(/(^\s*)|(\s*$)/g, "");
                $("#lis_cancelMaterialsList").show();
                if (a != '') {
                    var item = '<a href="javascript:void(0)" class="btnn"><span>' + itemName + '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                    $("#list_cancelMaterialsList").append(item);
                } else {
                    alert("请输入取消证明材料名称! ");
                }
                $("#subproject_cancelMaterialsList").val("");
            });
            //-------------取消材料清单-------------------
            $("#list_cancelMaterialsList").on("click", "i", function () {
                $(this).closest("a").remove();
            });

            //-----------------证明材料信息涉及部门动态添加事件---------------
            $("#add_materialsDeptList").on('click', function () {
                var itemName = $('#subproject_materialsDeptList').val();
                $(".value_materialsDeptList").val(itemName);
                var a = itemName.replace(/(^\s*)|(\s*$)/g, "");
                $("#lis_materialsDeptList").show();
                if (a != '') {
                    var item = '<a href="javascript:void(0)" class="btnn"><span>' + itemName + '</span><i class="layui-icon layui-icon-close txt_r"></i></a>';
                    $("#list_materialsDeptList").append(item);
                } else {
                    alert("请输入证明材料信息涉及部门!");
                }
                $("#subproject_materialsDeptList").val("");
            });
            //--------------取消证明材料信息涉及部门清单---------------
            $("#list_materialsDeptList").on("click", "i", function () {
                $(this).closest("a").remove();
            });

            $("input[name='handleDate']").change(function () {
                if ($(this).val() == 1) {
                    $(".footnote").show()
                    $(".time").hide()
                } else {
                    $(".footnote").hide()
                    $(".time").show()
                }
            });
        });

        //提交时触发
        function checkForm() {
            var $ = layui.jquery
            //---------------------小项动态添加生成影藏符号---------------------
            var spanLength = $('#subproject_list').find('span');
            var spanVal = "";
            for (var i = 0; i < spanLength.length; i++) {
                spanVal += $(spanLength[i]).text() + ";";
            }
            $("input[name='litPowerMatterName']").val(spanVal);
            //-------------------本地市民材料动态添加生成影藏符号-------------------------
            var spanLength2 = $('#list_materialsListLocal').find('span');
            var materialsListLocalNames = "";
            for (var i = 0; i < spanLength2.length; i++) {
                materialsListLocalNames += $(spanLength2[i]).text() + ";";
            }
            $("input[name='materialsListLocal']").val(materialsListLocalNames);
            //---------------------非本地市民材料动态添加生成影藏符号----------------------
            var spanLength3 = $('#list_materialsListOutside').find('span');
            var materialsListOutsideNames = "";
            for (var i = 0; i < spanLength3.length; i++) {
                materialsListOutsideNames += $(spanLength3[i]).text() + ";";
            }
            $("input[name='materialsListOutside']").val(materialsListOutsideNames);
            //---------------------取消证明材料动态添加生成影藏符号-----------------
            var spanLength4 = $('#list_cancelMaterialsList').find('span');
            var cancelMatterNames = "";
            for (var i = 0; i < spanLength4.length; i++) {
                cancelMatterNames += $(spanLength4[i]).text() + ";";
            }
            $("input[name='cancelMaterialsList']").val(cancelMatterNames);
            //----------------------信息涉及部门材料生成影藏符号-------------------
            var spanLength5 = $('#list_materialsDeptList').find('span');
            var matterDeptNames = "";
            for (var i = 0; i < spanLength5.length; i++) {
                matterDeptNames += $(spanLength5[i]).text() + ";";
            }
            $("input[name='materialsDeptList']").val(matterDeptNames);
        }
    </script>
</@layout>

